package com.goods.business.pojo;

import javax.persistence.*;

@Table(name = "biz_product_stock")
public class ProductStock {
    @Id
    private Long id;

    @Column(name = "p_num")
    private String pNum;

    /**
     * 商品库存结余
     */
    private Long stock;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return p_num
     */
    public String getpNum() {
        return pNum;
    }

    /**
     * @param pNum
     */
    public void setpNum(String pNum) {
        this.pNum = pNum == null ? null : pNum.trim();
    }

    /**
     * 获取商品库存结余
     *
     * @return stock - 商品库存结余
     */
    public Long getStock() {
        return stock;
    }

    /**
     * 设置商品库存结余
     *
     * @param stock 商品库存结余
     */
    public void setStock(Long stock) {
        this.stock = stock;
    }
}